/*
 * HighScore class to hold a name and score
 * @author Andrew cook
 */
package vooga.core;

public class HighScore
{
	private String myName;
	private long myScore;
	
	public HighScore(String name, long score)
	{
		myName = name;
		myScore = score;
	}
	
	public HighScore(Status status)
	{
		myName = status.getPlayerName();
		myScore = status.getScore();
	}
	
	public String getName()
	{
		return myName;
	}
	
	public long getScore()
	{
		return myScore;
	}
	
	public boolean isLarger(long score)
	{
		if(myScore-score>0)
			return true;
		return false;
	}
	
	public boolean isLarger(HighScore score)
	{
		return this.isLarger(score.getScore());
	}
}
